﻿using IntelligentAgriculture.Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IntelligentAgriculture.Domain.Interface
{
    public interface IPersonalSettingRepository
    {
        /// <summary>
        /// 获取用户个人信息
        /// </summary>
        /// <param name="uId">Id</param>
        /// <returns></returns>
        Userinfo GetPersonalDetails(int uId);
        /// <summary>
        /// 修改密码
        /// </summary>
        /// <param name="oldPassword">旧密码</param>
        /// <param name="newPassword">新密码</param>
        /// <returns></returns>
        Task<int> UpdatePassWord(string newPassword, string oldPassword);
    }
}
